<template>
	<view style="padding-bottom: 150rpx;">
		<u-sticky bgColor="#a3d8f5">
			<view class="mainpadding" :style="{paddingTop:menutop+'rpx'}">
				<view class="flexleft">
					<image src="@/static/image/system/hsz.png" class="hszclass" mode=""></image>
					<view class="xiaobai fonweight" style="font-size: 35rpx;">红十字基金会“孤寡老人大病救助基金”</view>
				</view>
				<view class="margin_top flexbetween">
					<u-icon name="arrow-left" color="#fff" size="24" @click="backpage()"></u-icon>
					<view class="xiaobai fonweight sanshier" style="font-size: 32rpx;">救助申请详情</view>
					<image src="@/static/image/system/list.png" mode="" class="topliclass" @click="toplistfn"></image>
				</view>
			</view>
		</u-sticky>
		<view class="mainpadding ffffff">
			<view class="flexbetween">
				<view class="ershiba xiaohei fonweight">审核状态</view>
				<view class="xiaohuang ershiba" v-show="dataAll.status==1">待审核</view>
				<view class="xiaolv ershiba" v-show="dataAll.status==2">审核通过</view>
				<view class="xiaohong ershiba" v-show="dataAll.status==3">审核拒绝</view>
				<view class="xiaohui ershiba" v-show="dataAll.status==4">补充材料</view>
			</view>
		</view>
		<view class="ffffff mainpadding margin_top">
			<view class="ershiba xiaohei fonweight">审核备注</view>
			<view class="ershiba xiaohong margin_top">{{dataAll.bz}}</view>
		</view>
		<view class="ffffff mainpadding margin_top">
			<view class="ershiba xiaohei fonweight">患者信息
				<text class="ershiba xiaohong fonweight">*</text>
			</view>
			<view class="margin_top xiahuaxian flexleft">
				<view class="ershiba xiaohei margin_right2">姓名</view>
				<input placeholder="请输入" disabled type="text" v-model="dataAll.name" />
			</view>
			<view class="margin_top xiahuaxian flexleft">
				<view class="ershiba xiaohei margin_right2">性别</view>
				<u-radio-group v-model="dataAll.sex" placement="row" circle>
					<u-radio activeColor="#d41c19" disabled :customStyle="{marginRight: '30rpx'}" label="男" name="1"></u-radio>
					<u-radio activeColor="#d41c19" disabled label="女" name="2"></u-radio>
				</u-radio-group>
			</view>
			<view class="margin_top xiahuaxian flexleft">
				<view class="ershiba xiaohei margin_right2">年龄</view>
				<input placeholder="请输入" type="number" disabled v-model="dataAll.age" />
			</view>
		
			<view class="margin_top xiahuaxian flexleft">
				<view class="ershiba xiaohei margin_right2">手机号（+86）</view>
				<input placeholder="请输入手机号" type="number" disabled v-model="dataAll.tel" />
			</view>
			<view class="margin_top xiahuaxian flexleft">
				<view class="ershiba xiaohei margin_right2">身份证号</view>
				<input placeholder="请输入" type="text" disabled v-model="dataAll.idcard" />
			</view>
			<view class="margin_top xiahuaxian flexleft">
				<view class="ershiba xiaohei margin_right2">户籍所在地</view>
				<input placeholder="请输入" type="text" disabled v-model="dataAll.hjszaddress" />
			</view>
			<view class="margin_top flexleft">
				<view class="ershiba xiaohei margin_right2">通讯住址</view>
				<input placeholder="请输入" type="text" disabled v-model="dataAll.txaddress" />
			</view>
		</view>
		<view class="ffffff mainpadding margin_top">
			<view class="ershiba xiaohei fonweight">其他信息
				<text class="ershiba xiaohong fonweight">*</text>
			</view>
			<view class="margin_top xiahuaxian flexleft">
				<view class="ershiba xiaohei margin_right2">领款人</view>
				<input placeholder="请输入" type="text" disabled v-model="dataAll.txaddress" />
			</view>
			<view class="margin_top xiahuaxian flexleft">
				<view class="ershiba xiaohei margin_right2">开户行</view>
				<input placeholder="请输入手机号" type="text" disabled v-model="dataAll.khbank" />
			</view>
			<view class="margin_top flexleft">
				<view class="ershiba xiaohei margin_right2">账号</view>
				<input placeholder="请输入" type="number" disabled v-model="dataAll.zh" />
			</view>
		</view>
		<view class="ffffff mainpadding margin_top">
			<view class="ershiba xiaohei fonweight">申请救助原因
				<text class="ershiba xiaohong fonweight">*</text>
			</view>
			<view class="flexleft flex_wrap" style="padding-top: 20rpx;">
				<view class=" margin_right1 lvbtn margin_top1">{{dataAll.jzyy}}</view>
			</view>
			<view class="ershiba xiaohei margin_top">{{dataAll.bqzk}}</view>
		</view>
		<view class="ffffff mainpadding margin_top">
			<view class="ershiba xiaohei fonweight">检查结果
				<text class="ershiba xiaohong fonweight">*</text>
			</view>
			<view class="flexleft flex_wrap">
				<view class="flexcenter tpbox " v-for="(item,index) in dataAll.jcjg_images_text" :key="index">
					<image class="tjtp" :src="item" mode="" @click="lbtpriview(index,dataAll.jcjg_images_text)"></image>
				</view>
			</view>
		</view>
		<view class="ffffff mainpadding margin_top">
			<view class="ershiba xiaohei fonweight">身份证件上传
				<text class="ershiba xiaohong fonweight">*</text>
			</view>
			<view class="xiaohui ershiba margin_top">被救助人身份证上传</view>
			<view class="flexbetween margin_top">
				<image :src="dataAll.zzidcard_zimage_text" class="sfztp" mode="" @click="lbtpriview(0,[dataAll.zzidcard_zimage_text])"></image>
				<image :src="dataAll.zzidcard_fimage_text" class="sfztp" mode="" @click="lbtpriview(0,[dataAll.zzidcard_fimage_text])"></image>
			</view>
			<view class="xiaohui ershiba margin_top">法定监护人身份证上传</view>
			<view class="flexbetween margin_top">
				<image :src="dataAll.fdidcard_zimage_text" class="sfztp" mode="" @click="lbtpriview(0,[dataAll.fdidcard_zimage_text])"></image>
				<image :src="dataAll.fdidcard_fimage_text" class="sfztp" mode="" @click="lbtpriview(0,[dataAll.fdidcard_fimage_text])"></image>
			</view>
		</view>
		<view class="gudingdb mainpadding" v-if="dataAll.status==4">
			<view class="bigbtn" @click="jumpdetail('/pages/mine/jiuzhuxgsq?id=',listid)">重新申请</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				// #ifdef H5
				menutop: 80,
				// #endif
				// #ifdef MP-WEIXIN
				menutop: 0,
				// #endif	
				dataAll:{},
				listid:""
			}
		},
		onLoad(options) {
			// #ifdef MP-WEIXIN
			this.menutop = uni.getMenuButtonBoundingClientRect().top * 2
			// #endif
			this.listid = options.id
		},
		onShow() {
			this.getDetail()
		},
		methods: {
			getDetail(){
				httpRequest.request('/api/user/jzapplyDetail', 'GET', {
					id: this.listid,
				}).then(res => {
					this.dataAll = res.data
				}).catch(err => {})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.huibtn {
		background: #F9F9F9;
		border-radius: 8rpx 8rpx 8rpx 8rpx;
		padding: 15rpx 30rpx;
		font-size: 28rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #777777;
	}

	.lvbtn {
		background: rgba(255, 0, 0, .04);
		border-radius: 8rpx 8rpx 8rpx 8rpx;
		padding: 15rpx 30rpx;
		font-size: 28rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #ff0000;
	}

	.sfztp {
		width: 300rpx;
		height: 180rpx;
	}
</style>
